load("@rules_jvm_external//:defs.bzl", "artifact")
load("//java:defs.bzl", "java_library")

java_library(
    name = "graphql",
    srcs = glob(["*.java"]),
    resources = [
        "selenium-grid-schema.graphqls",
    ],
    visibility = [
        "//java/src/org/openqa/selenium/grid:__subpackages__",
        "//java/test/org/openqa/selenium/grid/graphql:__pkg__",
    ],
    deps = [
        "//java/src/org/openqa/selenium:core",
        "//java/src/org/openqa/selenium/grid/data",
        "//java/src/org/openqa/selenium/grid/distributor",
        "//java/src/org/openqa/selenium/grid/sessionqueue",
        "//java/src/org/openqa/selenium/json",
        "//java/src/org/openqa/selenium/remote",
        "//java/src/org/openqa/selenium/remote/http",
        artifact("com.google.guava:guava"),
        artifact("com.graphql-java:graphql-java"),
        artifact("com.github.ben-manes.caffeine:caffeine"),
    ],
)
